package com.thinkgem.jeesite.modules.crawler.utils;

import java.util.List;

/**
 * list相关操作
 * @author mj 2017/1/12
 *
 */
public class CommonListUtils {
	
	
	/**
	 * 判断list是否是空，如果是空返回true,反之返回false
	 * @author mj 2017/1/12
	 * @param  list
	 * @return isEmpty
	 */
	public static boolean isEmpty(List list){
		boolean isEmpty = true;
		if(list != null && list.size() > 0){
			isEmpty = false;
		}			
		return isEmpty;
	}
	
	
	/**
	 * 判断list是否非空，如果是非空返回true,反之返回false
	 * @author mj 2017/1/12
	 * @param  list
	 * @return isNotEmpty
	 */
	public static boolean isNotEmpty(List list){
		boolean isNotEmpty = true;
		if(list == null || list.size() <= 0){
			isNotEmpty = false;
		}			
		return isNotEmpty;
	}
}
